/* 由 Snowball 2.2.0 生成 - https://snowballstem.org/ */

#include "header.h"

#ifdef __cplusplus
extern "C" {
#endif
extern int turkish_UTF_8_stem(struct SN_env * fc_z);
#ifdef __cplusplus
}
#endif
static int fc_r_stem_suffix_chain_before_ki(struct SN_env * fc_z);
static int fc_r_stem_noun_suffixes(struct SN_env * fc_z);
static int fc_r_stem_nominal_verb_suffixes(struct SN_env * fc_z);
static int fc_r_postlude(struct SN_env * fc_z);
static int fc_r_post_process_last_consonants(struct SN_env * fc_z);
static int fc_r_more_than_one_syllable_word(struct SN_env * fc_z);
static int fc_r_mark_suffix_with_optional_s_consonant(struct SN_env * fc_z);
static int fc_r_mark_suffix_with_optional_n_consonant(struct SN_env * fc_z);
static int fc_r_mark_suffix_with_optional_U_vowel(struct SN_env * fc_z);
static int fc_r_mark_suffix_with_optional_y_consonant(struct SN_env * fc_z);
static int fc_r_mark_ysA(struct SN_env * fc_z);
static int fc_r_mark_ymUs_(struct SN_env * fc_z);
static int fc_r_mark_yken(struct SN_env * fc_z);
static int fc_r_mark_yDU(struct SN_env * fc_z);
static int fc_r_mark_yUz(struct SN_env * fc_z);
static int fc_r_mark_yUm(struct SN_env * fc_z);
static int fc_r_mark_yU(struct SN_env * fc_z);
static int fc_r_mark_ylA(struct SN_env * fc_z);
static int fc_r_mark_yA(struct SN_env * fc_z);
static int fc_r_mark_possessives(struct SN_env * fc_z);
static int fc_r_mark_sUnUz(struct SN_env * fc_z);
static int fc_r_mark_sUn(struct SN_env * fc_z);
static int fc_r_mark_sU(struct SN_env * fc_z);
static int fc_r_mark_nUz(struct SN_env * fc_z);
static int fc_r_mark_nUn(struct SN_env * fc_z);
static int fc_r_mark_nU(struct SN_env * fc_z);
static int fc_r_mark_ndAn(struct SN_env * fc_z);
static int fc_r_mark_ndA(struct SN_env * fc_z);
static int fc_r_mark_ncA(struct SN_env * fc_z);
static int fc_r_mark_nA(struct SN_env * fc_z);
static int fc_r_mark_lArI(struct SN_env * fc_z);
static int fc_r_mark_lAr(struct SN_env * fc_z);
static int fc_r_mark_ki(struct SN_env * fc_z);
static int fc_r_mark_DUr(struct SN_env * fc_z);
static int fc_r_mark_DAn(struct SN_env * fc_z);
static int fc_r_mark_DA(struct SN_env * fc_z);
static int fc_r_mark_cAsInA(struct SN_env * fc_z);
static int fc_r_is_reserved_word(struct SN_env * fc_z);
static int fc_r_check_vowel_harmony(struct SN_env * fc_z);
static int fc_r_append_U_to_stems_ending_with_d_or_g(struct SN_env * fc_z);
#ifdef __cplusplus
extern "C" {
#endif


extern struct SN_env * turkish_UTF_8_create_env(void);
extern void turkish_UTF_8_close_env(struct SN_env * fc_z);


#ifdef __cplusplus
}
#endif
static const symbol s_0_0[1] = { 'm' };
static const symbol s_0_1[1] = { 'n' };
static const symbol s_0_2[3] = { 'm', 'i', 'z' };
static const symbol s_0_3[3] = { 'n', 'i', 'z' };
static const symbol s_0_4[3] = { 'm', 'u', 'z' };
static const symbol s_0_5[3] = { 'n', 'u', 'z' };
static const symbol s_0_6[4] = { 'm', 0xC4, 0xB1, 'z' };
static const symbol s_0_7[4] = { 'n', 0xC4, 0xB1, 'z' };
static const symbol s_0_8[4] = { 'm', 0xC3, 0xBC, 'z' };
static const symbol s_0_9[4] = { 'n', 0xC3, 0xBC, 'z' };

static const struct among a_0[10] =
{
{ 1, s_0_0, -1, -1, 0},
{ 1, s_0_1, -1, -1, 0},
{ 3, s_0_2, -1, -1, 0},
{ 3, s_0_3, -1, -1, 0},
{ 3, s_0_4, -1, -1, 0},
{ 3, s_0_5, -1, -1, 0},
{ 4, s_0_6, -1, -1, 0},
{ 4, s_0_7, -1, -1, 0},
{ 4, s_0_8, -1, -1, 0},
{ 4, s_0_9, -1, -1, 0}
};

static const symbol s_1_0[4] = { 'l', 'e', 'r', 'i' };
static const symbol s_1_1[5] = { 'l', 'a', 'r', 0xC4, 0xB1 };

static const struct among a_1[2] =
{
{ 4, s_1_0, -1, -1, 0},
{ 5, s_1_1, -1, -1, 0}
};

static const symbol s_2_0[2] = { 'n', 'i' };
static const symbol s_2_1[2] = { 'n', 'u' };
static const symbol s_2_2[3] = { 'n', 0xC4, 0xB1 };
static const symbol s_2_3[3] = { 'n', 0xC3, 0xBC };

static const struct among a_2[4] =
{
{ 2, s_2_0, -1, -1, 0},
{ 2, s_2_1, -1, -1, 0},
{ 3, s_2_2, -1, -1, 0},
{ 3, s_2_3, -1, -1, 0}
};

static const symbol s_3_0[2] = { 'i', 'n' };
static const symbol s_3_1[2] = { 'u', 'n' };
static const symbol s_3_2[3] = { 0xC4, 0xB1, 'n' };
static const symbol s_3_3[3] = { 0xC3, 0xBC, 'n' };

static const struct among a_3[4] =
{
{ 2, s_3_0, -1, -1, 0},
{ 2, s_3_1, -1, -1, 0},
{ 3, s_3_2, -1, -1, 0},
{ 3, s_3_3, -1, -1, 0}
};

static const symbol s_4_0[1] = { 'a' };
static const symbol s_4_1[1] = { 'e' };

static const struct among a_4[2] =
{
{ 1, s_4_0, -1, -1, 0},
{ 1, s_4_1, -1, -1, 0}
};

static const symbol s_5_0[2] = { 'n', 'a' };
static const symbol s_5_1[2] = { 'n', 'e' };

static const struct among a_5[2] =
{
{ 2, s_5_0, -1, -1, 0},
{ 2, s_5_1, -1, -1, 0}
};

static const symbol s_6_0[2] = { 'd', 'a' };
static const symbol s_6_1[2] = { 't', 'a' };
static const symbol s_6_2[2] = { 'd', 'e' };
static const symbol s_6_3[2] = { 't', 'e' };

static const struct among a_6[4] =
{
{ 2, s_6_0, -1, -1, 0},
{ 2, s_6_1, -1, -1, 0},
{ 2, s_6_2, -1, -1, 0},
{ 2, s_6_3, -1, -1, 0}
};

static const symbol s_7_0[3] = { 'n', 'd', 'a' };
static const symbol s_7_1[3] = { 'n', 'd', 'e' };

static const struct among a_7[2] =
{
{ 3, s_7_0, -1, -1, 0},
{ 3, s_7_1, -1, -1, 0}
};

static const symbol s_8_0[3] = { 'd', 'a', 'n' };
static const symbol s_8_1[3] = { 't', 'a', 'n' };
static const symbol s_8_2[3] = { 'd', 'e', 'n' };
static const symbol s_8_3[3] = { 't', 'e', 'n' };

static const struct among a_8[4] =
{
{ 3, s_8_0, -1, -1, 0},
{ 3, s_8_1, -1, -1, 0},
{ 3, s_8_2, -1, -1, 0},
{ 3, s_8_3, -1, -1, 0}
};

static const symbol s_9_0[4] = { 'n', 'd', 'a', 'n' };
static const symbol s_9_1[4] = { 'n', 'd', 'e', 'n' };

static const struct among a_9[2] =
{
{ 4, s_9_0, -1, -1, 0},
{ 4, s_9_1, -1, -1, 0}
};

static const symbol s_10_0[2] = { 'l', 'a' };
static const symbol s_10_1[2] = { 'l', 'e' };

static const struct among a_10[2] =
{
{ 2, s_10_0, -1, -1, 0},
{ 2, s_10_1, -1, -1, 0}
};

static const symbol s_11_0[2] = { 'c', 'a' };
static const symbol s_11_1[2] = { 'c', 'e' };

static const struct among a_11[2] =
{
{ 2, s_11_0, -1, -1, 0},
{ 2, s_11_1, -1, -1, 0}
};

static const symbol s_12_0[2] = { 'i', 'm' };
static const symbol s_12_1[2] = { 'u', 'm' };
static const symbol s_12_2[3] = { 0xC4, 0xB1, 'm' };
static const symbol s_12_3[3] = { 0xC3, 0xBC, 'm' };

static const struct among a_12[4] =
{
{ 2, s_12_0, -1, -1, 0},
{ 2, s_12_1, -1, -1, 0},
{ 3, s_12_2, -1, -1, 0},
{ 3, s_12_3, -1, -1, 0}
};

static const symbol s_13_0[3] = { 's', 'i', 'n' };
static const symbol s_13_1[3] = { 's', 'u', 'n' };
static const symbol s_13_2[4] = { 's', 0xC4, 0xB1, 'n' };
static const symbol s_13_3[4] = { 's', 0xC3, 0xBC, 'n' };

static const struct among a_13[4] =
{
{ 3, s_13_0, -1, -1, 0},
{ 3, s_13_1, -1, -1, 0},
{ 4, s_13_2, -1, -1, 0},
{ 4, s_13_3, -1, -1, 0}
};

static const symbol s_14_0[2] = { 'i', 'z' };
static const symbol s_14_1[2] = { 'u', 'z' };
static const symbol s_14_2[3] = { 0xC4, 0xB1, 'z' };
static const symbol s_14_3[3] = { 0xC3, 0xBC, 'z' };

static const struct among a_14[4] =
{
{ 2, s_14_0, -1, -1, 0},
{ 2, s_14_1, -1, -1, 0},
{ 3, s_14_2, -1, -1, 0},
{ 3, s_14_3, -1, -1, 0}
};

static const symbol s_15_0[5] = { 's', 'i', 'n', 'i', 'z' };
static const symbol s_15_1[5] = { 's', 'u', 'n', 'u', 'z' };
static const symbol s_15_2[7] = { 's', 0xC4, 0xB1, 'n', 0xC4, 0xB1, 'z' };
static const symbol s_15_3[7] = { 's', 0xC3, 0xBC, 'n', 0xC3, 0xBC, 'z' };

static const struct among a_15[4] =
{
{ 5, s_15_0, -1, -1, 0},
{ 5, s_15_1, -1, -1, 0},
{ 7, s_15_2, -1, -1, 0},
{ 7, s_15_3, -1, -1, 0}
};

static const symbol s_16_0[3] = { 'l', 'a', 'r' };
static const symbol s_16_1[3] = { 'l', 'e', 'r' };

static const struct among a_16[2] =
{
{ 3, s_16_0, -1, -1, 0},
{ 3, s_16_1, -1, -1, 0}
};

static const symbol s_17_0[3] = { 'n', 'i', 'z' };
static const symbol s_17_1[3] = { 'n', 'u', 'z' };
static const symbol s_17_2[4] = { 'n', 0xC4, 0xB1, 'z' };
static const symbol s_17_3[4] = { 'n', 0xC3, 0xBC, 'z' };

static const struct among a_17[4] =
{
{ 3, s_17_0, -1, -1, 0},
{ 3, s_17_1, -1, -1, 0},
{ 4, s_17_2, -1, -1, 0},
{ 4, s_17_3, -1, -1, 0}
};

static const symbol s_18_0[3] = { 'd', 'i', 'r' };
static const symbol s_18_1[3] = { 't', 'i', 'r' };
static const symbol s_18_2[3] = { 'd', 'u', 'r' };
static const symbol s_18_3[3] = { 't', 'u', 'r' };
static const symbol s_18_4[4] = { 'd', 0xC4, 0xB1, 'r' };
static const symbol s_18_5[4] = { 't', 0xC4, 0xB1, 'r' };
static const symbol s_18_6[4] = { 'd', 0xC3, 0xBC, 'r' };
static const symbol s_18_7[4] = { 't', 0xC3, 0xBC, 'r' };

static const struct among a_18[8] =
{
{ 3, s_18_0, -1, -1, 0},
{ 3, s_18_1, -1, -1, 0},
{ 3, s_18_2, -1, -1, 0},
{ 3, s_18_3, -1, -1, 0},
{ 4, s_18_4, -1, -1, 0},
{ 4, s_18_5, -1, -1, 0},
{ 4, s_18_6, -1, -1, 0},
{ 4, s_18_7, -1, -1, 0}
};

static const symbol s_19_0[7] = { 'c', 'a', 's', 0xC4, 0xB1, 'n', 'a' };
static const symbol s_19_1[6] = { 'c', 'e', 's', 'i', 'n', 'e' };

static const struct among a_19[2] =
{
{ 7, s_19_0, -1, -1, 0},
{ 6, s_19_1, -1, -1, 0}
};

static const symbol s_20_0[2] = { 'd', 'i' };
static const symbol s_20_1[2] = { 't', 'i' };
static const symbol s_20_2[3] = { 'd', 'i', 'k' };
static const symbol s_20_3[3] = { 't', 'i', 'k' };
static const symbol s_20_4[3] = { 'd', 'u', 'k' };
static const symbol s_20_5[3] = { 't', 'u', 'k' };
static const symbol s_20_6[4] = { 'd', 0xC4, 0xB1, 'k' };
static const symbol s_20_7[4] = { 't', 0xC4, 0xB1, 'k' };
static const symbol s_20_8[4] = { 'd', 0xC3, 0xBC, 'k' };
static const symbol s_20_9[4] = { 't', 0xC3, 0xBC, 'k' };
static const symbol s_20_10[3] = { 'd', 'i', 'm' };
static const symbol s_20_11[3] = { 't', 'i', 'm' };
static const symbol s_20_12[3] = { 'd', 'u', 'm' };
static const symbol s_20_13[3] = { 't', 'u', 'm' };
static const symbol s_20_14[4] = { 'd', 0xC4, 0xB1, 'm' };
static const symbol s_20_15[4] = { 't', 0xC4, 0xB1, 'm' };
static const symbol s_20_16[4] = { 'd', 0xC3, 0xBC, 'm' };
static const symbol s_20_17[4] = { 't', 0xC3, 0xBC, 'm' };
static const symbol s_20_18[3] = { 'd', 'i', 'n' };
static const symbol s_20_19[3] = { 't', 'i', 'n' };
static const symbol s_20_20[3] = { 'd', 'u', 'n' };
static const symbol s_20_21[3] = { 't', 'u', 'n' };
static const symbol s_20_22[4] = { 'd', 0xC4, 0xB1, 'n' };
static const symbol s_20_23[4] = { 't', 0xC4, 0xB1, 'n' };
static const symbol s_20_24[4] = { 'd', 0xC3, 0xBC, 'n' };
static const symbol s_20_25[4] = { 't', 0xC3, 0xBC, 'n' };
static const symbol s_20_26[2] = { 'd', 'u' };
static const symbol s_20_27[2] = { 't', 'u' };
static const symbol s_20_28[3] = { 'd', 0xC4, 0xB1 };
static const symbol s_20_29[3] = { 't', 0xC4, 0xB1 };
static const symbol s_20_30[3] = { 'd', 0xC3, 0xBC };
static const symbol s_20_31[3] = { 't', 0xC3, 0xBC };

static const struct among a_20[32] =
{
{ 2, s_20_0, -1, -1, 0},
{ 2, s_20_1, -1, -1, 0},
{ 3, s_20_2, -1, -1, 0},
{ 3, s_20_3, -1, -1, 0},
{ 3, s_20_4, -1, -1, 0},
{ 3, s_20_5, -1, -1, 0},
{ 4, s_20_6, -1, -1, 0},
{ 4, s_20_7, -1, -1, 0},
{ 4, s_20_8, -1, -1, 0},
{ 4, s_20_9, -1, -1, 0},
{ 3, s_20_10, -1, -1, 0},
{ 3, s_20_11, -1, -1, 0},
{ 3, s_20_12, -1, -1, 0},
{ 3, s_20_13, -1, -1, 0},
{ 4, s_20_14, -1, -1, 0},
{ 4, s_20_15, -1, -1, 0},
{ 4, s_20_16, -1, -1, 0},
{ 4, s_20_17, -1, -1, 0},
{ 3, s_20_18, -1, -1, 0},
{ 3, s_20_19, -1, -1, 0},
{ 3, s_20_20, -1, -1, 0},
{ 3, s_20_21, -1, -1, 0},
{ 4, s_20_22, -1, -1, 0},
{ 4, s_20_23, -1, -1, 0},
{ 4, s_20_24, -1, -1, 0},
{ 4, s_20_25, -1, -1, 0},
{ 2, s_20_26, -1, -1, 0},
{ 2, s_20_27, -1, -1, 0},
{ 3, s_20_28, -1, -1, 0},
{ 3, s_20_29, -1, -1, 0},
{ 3, s_20_30, -1, -1, 0},
{ 3, s_20_31, -1, -1, 0}
};

static const symbol s_21_0[2] = { 's', 'a' };
static const symbol s_21_1[2] = { 's', 'e' };
static const symbol s_21_2[3] = { 's', 'a', 'k' };
static const symbol s_21_3[3] = { 's', 'e', 'k' };
static const symbol s_21_4[3] = { 's', 'a', 'm' };
static const symbol s_21_5[3] = { 's', 'e', 'm' };
static const symbol s_21_6[3] = { 's', 'a', 'n' };
static const symbol s_21_7[3] = { 's', 'e', 'n' };

static const struct among a_21[8] =
{
{ 2, s_21_0, -1, -1, 0},
{ 2, s_21_1, -1, -1, 0},
{ 3, s_21_2, -1, -1, 0},
{ 3, s_21_3, -1, -1, 0},
{ 3, s_21_4, -1, -1, 0},
{ 3, s_21_5, -1, -1, 0},
{ 3, s_21_6, -1, -1, 0},
{ 3, s_21_7, -1, -1, 0}
};

static const symbol s_22_0[4] = { 'm', 'i', 0xC5, 0x9F };
static const symbol s_22_1[4] = { 'm', 'u', 0xC5, 0x9F };
static const symbol s_22_2[5] = { 'm', 0xC4, 0xB1, 0xC5, 0x9F };
static const symbol s_22_3[5] = { 'm', 0xC3, 0xBC, 0xC5, 0x9F };

static const struct among a_22[4] =
{
{ 4, s_22_0, -1, -1, 0},
{ 4, s_22_1, -1, -1, 0},
{ 5, s_22_2, -1, -1, 0},
{ 5, s_22_3, -1, -1, 0}
};

static const symbol s_23_0[1] = { 'b' };
static const symbol s_23_1[1] = { 'c' };
static const symbol s_23_2[1] = { 'd' };
static const symbol s_23_3[2] = { 0xC4, 0x9F };

static const struct among a_23[4] =
{
{ 1, s_23_0, -1, 1, 0},
{ 1, s_23_1, -1, 2, 0},
{ 1, s_23_2, -1, 3, 0},
{ 2, s_23_3, -1, 4, 0}
};

static const unsigned char g_vowel[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 8, 0, 0, 0, 0, 0, 0, 1 };

static const unsigned char g_U[] = { 1, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1 };

static const unsigned char g_vowel1[] = { 1, 64, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };

static const unsigned char g_vowel2[] = { 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130 };

static const unsigned char g_vowel3[] = { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };

static const unsigned char g_vowel4[] = { 17 };

static const unsigned char g_vowel5[] = { 65 };

static const unsigned char g_vowel6[] = { 65 };

static const symbol s_0[] = { 0xC4, 0xB1 };
static const symbol s_1[] = { 0xC3, 0xB6 };
static const symbol s_2[] = { 0xC3, 0xBC };
static const symbol s_3[] = { 'k', 'i' };
static const symbol s_4[] = { 'k', 'e', 'n' };
static const symbol s_5[] = { 'p' };
static const symbol s_6[] = { 0xC3, 0xA7 };
static const symbol s_7[] = { 't' };
static const symbol s_8[] = { 'k' };
static const symbol s_9[] = { 0xC4, 0xB1 };
static const symbol s_10[] = { 0xC4, 0xB1 };
static const symbol s_11[] = { 'i' };
static const symbol s_12[] = { 'u' };
static const symbol s_13[] = { 0xC3, 0xB6 };
static const symbol s_14[] = { 0xC3, 0xBC };
static const symbol s_15[] = { 0xC3, 0xBC };
static const symbol s_16[] = { 'a', 'd' };
static const symbol s_17[] = { 's', 'o', 'y' };

static int fc_r_check_vowel_harmony(struct SN_env * fc_z) {
    {   int fc_m_test1 = fc_z->l - fc_z->c;
        if (out_grouping_b_U(fc_z, g_vowel, 97, 305, 1) < 0) return 0;
        {   int fc_m2 = fc_z->l - fc_z->c; (void)fc_m2;
            if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'a') goto lab1;
            fc_z->c--;
            if (out_grouping_b_U(fc_z, g_vowel1, 97, 305, 1) < 0) goto lab1;
            goto lab0;
        lab1:
            fc_z->c = fc_z->l - fc_m2;
            if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'e') goto lab2;
            fc_z->c--;
            if (out_grouping_b_U(fc_z, g_vowel2, 101, 252, 1) < 0) goto lab2;
            goto lab0;
        lab2:
            fc_z->c = fc_z->l - fc_m2;
            if (!(eq_s_b(fc_z, 2, s_0))) goto lab3;
            if (out_grouping_b_U(fc_z, g_vowel3, 97, 305, 1) < 0) goto lab3;
            goto lab0;
        lab3:
            fc_z->c = fc_z->l - fc_m2;
            if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'i') goto lab4;
            fc_z->c--;
            if (out_grouping_b_U(fc_z, g_vowel4, 101, 105, 1) < 0) goto lab4;
            goto lab0;
        lab4:
            fc_z->c = fc_z->l - fc_m2;
            if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'o') goto lab5;
            fc_z->c--;
            if (out_grouping_b_U(fc_z, g_vowel5, 111, 117, 1) < 0) goto lab5;
            goto lab0;
        lab5:
            fc_z->c = fc_z->l - fc_m2;
            if (!(eq_s_b(fc_z, 2, s_1))) goto lab6;
            if (out_grouping_b_U(fc_z, g_vowel6, 246, 252, 1) < 0) goto lab6;
            goto lab0;
        lab6:
            fc_z->c = fc_z->l - fc_m2;
            if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'u') goto lab7;
            fc_z->c--;
            if (out_grouping_b_U(fc_z, g_vowel5, 111, 117, 1) < 0) goto lab7;
            goto lab0;
        lab7:
            fc_z->c = fc_z->l - fc_m2;
            if (!(eq_s_b(fc_z, 2, s_2))) return 0;
            if (out_grouping_b_U(fc_z, g_vowel6, 246, 252, 1) < 0) return 0;
        }
    lab0:
        fc_z->c = fc_z->l - fc_m_test1;
    }
    return 1;
}

static int fc_r_mark_suffix_with_optional_n_consonant(struct SN_env * fc_z) {
    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'n') goto lab1;
        fc_z->c--;
        {   int fc_m_test2 = fc_z->l - fc_z->c;
            if (in_grouping_b_U(fc_z, g_vowel, 97, 305, 0)) goto lab1;
            fc_z->c = fc_z->l - fc_m_test2;
        }
        goto lab0;
    lab1:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
            {   int fc_m_test4 = fc_z->l - fc_z->c;
                if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'n') goto lab2;
                fc_z->c--;
                fc_z->c = fc_z->l - fc_m_test4;
            }
            return 0;
        lab2:
            fc_z->c = fc_z->l - fc_m3;
        }
        {   int fc_m_test5 = fc_z->l - fc_z->c;
            {   int fc_ret = skip_b_utf8(fc_z->p, fc_z->c, fc_z->lb, 1);
                if (fc_ret < 0) return 0;
                fc_z->c = fc_ret;
            }
            if (in_grouping_b_U(fc_z, g_vowel, 97, 305, 0)) return 0;
            fc_z->c = fc_z->l - fc_m_test5;
        }
    }
lab0:
    return 1;
}

static int fc_r_mark_suffix_with_optional_s_consonant(struct SN_env * fc_z) {
    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 's') goto lab1;
        fc_z->c--;
        {   int fc_m_test2 = fc_z->l - fc_z->c;
            if (in_grouping_b_U(fc_z, g_vowel, 97, 305, 0)) goto lab1;
            fc_z->c = fc_z->l - fc_m_test2;
        }
        goto lab0;
    lab1:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
            {   int fc_m_test4 = fc_z->l - fc_z->c;
                if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 's') goto lab2;
                fc_z->c--;
                fc_z->c = fc_z->l - fc_m_test4;
            }
            return 0;
        lab2:
            fc_z->c = fc_z->l - fc_m3;
        }
        {   int fc_m_test5 = fc_z->l - fc_z->c;
            {   int fc_ret = skip_b_utf8(fc_z->p, fc_z->c, fc_z->lb, 1);
                if (fc_ret < 0) return 0;
                fc_z->c = fc_ret;
            }
            if (in_grouping_b_U(fc_z, g_vowel, 97, 305, 0)) return 0;
            fc_z->c = fc_z->l - fc_m_test5;
        }
    }
lab0:
    return 1;
}

static int fc_r_mark_suffix_with_optional_y_consonant(struct SN_env * fc_z) {
    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'y') goto lab1;
        fc_z->c--;
        {   int fc_m_test2 = fc_z->l - fc_z->c;
            if (in_grouping_b_U(fc_z, g_vowel, 97, 305, 0)) goto lab1;
            fc_z->c = fc_z->l - fc_m_test2;
        }
        goto lab0;
    lab1:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
            {   int fc_m_test4 = fc_z->l - fc_z->c;
                if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'y') goto lab2;
                fc_z->c--;
                fc_z->c = fc_z->l - fc_m_test4;
            }
            return 0;
        lab2:
            fc_z->c = fc_z->l - fc_m3;
        }
        {   int fc_m_test5 = fc_z->l - fc_z->c;
            {   int fc_ret = skip_b_utf8(fc_z->p, fc_z->c, fc_z->lb, 1);
                if (fc_ret < 0) return 0;
                fc_z->c = fc_ret;
            }
            if (in_grouping_b_U(fc_z, g_vowel, 97, 305, 0)) return 0;
            fc_z->c = fc_z->l - fc_m_test5;
        }
    }
lab0:
    return 1;
}

static int fc_r_mark_suffix_with_optional_U_vowel(struct SN_env * fc_z) {
    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        if (in_grouping_b_U(fc_z, g_U, 105, 305, 0)) goto lab1;
        {   int fc_m_test2 = fc_z->l - fc_z->c;
            if (out_grouping_b_U(fc_z, g_vowel, 97, 305, 0)) goto lab1;
            fc_z->c = fc_z->l - fc_m_test2;
        }
        goto lab0;
    lab1:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
            {   int fc_m_test4 = fc_z->l - fc_z->c;
                if (in_grouping_b_U(fc_z, g_U, 105, 305, 0)) goto lab2;
                fc_z->c = fc_z->l - fc_m_test4;
            }
            return 0;
        lab2:
            fc_z->c = fc_z->l - fc_m3;
        }
        {   int fc_m_test5 = fc_z->l - fc_z->c;
            {   int fc_ret = skip_b_utf8(fc_z->p, fc_z->c, fc_z->lb, 1);
                if (fc_ret < 0) return 0;
                fc_z->c = fc_ret;
            }
            if (out_grouping_b_U(fc_z, g_vowel, 97, 305, 0)) return 0;
            fc_z->c = fc_z->l - fc_m_test5;
        }
    }
lab0:
    return 1;
}

static int fc_r_mark_possessives(struct SN_env * fc_z) {
    if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] >> 5 != 3 || !((67133440 >> (fc_z->p[fc_z->c - 1] & 0x1f)) & 1)) return 0;
    if (!(find_among_b(fc_z, a_0, 10))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_U_vowel(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_sU(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (in_grouping_b_U(fc_z, g_U, 105, 305, 0)) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_s_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_lArI(struct SN_env * fc_z) {
    if (fc_z->c - 3 <= fc_z->lb || (fc_z->p[fc_z->c - 1] != 105 && fc_z->p[fc_z->c - 1] != 177)) return 0;
    if (!(find_among_b(fc_z, a_1, 2))) return 0;
    return 1;
}

static int fc_r_mark_yU(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (in_grouping_b_U(fc_z, g_U, 105, 305, 0)) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_nU(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (!(find_among_b(fc_z, a_2, 4))) return 0;
    return 1;
}

static int fc_r_mark_nUn(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 1 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 110) return 0;
    if (!(find_among_b(fc_z, a_3, 4))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_n_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_yA(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c <= fc_z->lb || (fc_z->p[fc_z->c - 1] != 97 && fc_z->p[fc_z->c - 1] != 101)) return 0;
    if (!(find_among_b(fc_z, a_4, 2))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_nA(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 1 <= fc_z->lb || (fc_z->p[fc_z->c - 1] != 97 && fc_z->p[fc_z->c - 1] != 101)) return 0;
    if (!(find_among_b(fc_z, a_5, 2))) return 0;
    return 1;
}

static int fc_r_mark_DA(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 1 <= fc_z->lb || (fc_z->p[fc_z->c - 1] != 97 && fc_z->p[fc_z->c - 1] != 101)) return 0;
    if (!(find_among_b(fc_z, a_6, 4))) return 0;
    return 1;
}

static int fc_r_mark_ndA(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 2 <= fc_z->lb || (fc_z->p[fc_z->c - 1] != 97 && fc_z->p[fc_z->c - 1] != 101)) return 0;
    if (!(find_among_b(fc_z, a_7, 2))) return 0;
    return 1;
}

static int fc_r_mark_DAn(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 2 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 110) return 0;
    if (!(find_among_b(fc_z, a_8, 4))) return 0;
    return 1;
}

static int fc_r_mark_ndAn(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 3 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 110) return 0;
    if (!(find_among_b(fc_z, a_9, 2))) return 0;
    return 1;
}

static int fc_r_mark_ylA(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 1 <= fc_z->lb || (fc_z->p[fc_z->c - 1] != 97 && fc_z->p[fc_z->c - 1] != 101)) return 0;
    if (!(find_among_b(fc_z, a_10, 2))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_ki(struct SN_env * fc_z) {
    if (!(eq_s_b(fc_z, 2, s_3))) return 0;
    return 1;
}

static int fc_r_mark_ncA(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 1 <= fc_z->lb || (fc_z->p[fc_z->c - 1] != 97 && fc_z->p[fc_z->c - 1] != 101)) return 0;
    if (!(find_among_b(fc_z, a_11, 2))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_n_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_yUm(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 1 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 109) return 0;
    if (!(find_among_b(fc_z, a_12, 4))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_sUn(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 2 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 110) return 0;
    if (!(find_among_b(fc_z, a_13, 4))) return 0;
    return 1;
}

static int fc_r_mark_yUz(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 1 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 122) return 0;
    if (!(find_among_b(fc_z, a_14, 4))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_sUnUz(struct SN_env * fc_z) {
    if (fc_z->c - 4 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 122) return 0;
    if (!(find_among_b(fc_z, a_15, 4))) return 0;
    return 1;
}

static int fc_r_mark_lAr(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 2 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 114) return 0;
    if (!(find_among_b(fc_z, a_16, 2))) return 0;
    return 1;
}

static int fc_r_mark_nUz(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 2 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 122) return 0;
    if (!(find_among_b(fc_z, a_17, 4))) return 0;
    return 1;
}

static int fc_r_mark_DUr(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 2 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 114) return 0;
    if (!(find_among_b(fc_z, a_18, 8))) return 0;
    return 1;
}

static int fc_r_mark_cAsInA(struct SN_env * fc_z) {
    if (fc_z->c - 5 <= fc_z->lb || (fc_z->p[fc_z->c - 1] != 97 && fc_z->p[fc_z->c - 1] != 101)) return 0;
    if (!(find_among_b(fc_z, a_19, 2))) return 0;
    return 1;
}

static int fc_r_mark_yDU(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (!(find_among_b(fc_z, a_20, 32))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_ysA(struct SN_env * fc_z) {
    if (fc_z->c - 1 <= fc_z->lb || fc_z->p[fc_z->c - 1] >> 5 != 3 || !((26658 >> (fc_z->p[fc_z->c - 1] & 0x1f)) & 1)) return 0;
    if (!(find_among_b(fc_z, a_21, 8))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_ymUs_(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_check_vowel_harmony(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    if (fc_z->c - 3 <= fc_z->lb || fc_z->p[fc_z->c - 1] != 159) return 0;
    if (!(find_among_b(fc_z, a_22, 4))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_mark_yken(struct SN_env * fc_z) {
    if (!(eq_s_b(fc_z, 3, s_4))) return 0;
    {   int fc_ret = fc_r_mark_suffix_with_optional_y_consonant(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

static int fc_r_stem_nominal_verb_suffixes(struct SN_env * fc_z) {
    fc_z->ket = fc_z->c;
    fc_z->I[0] = 1;
    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        {   int fc_m2 = fc_z->l - fc_z->c; (void)fc_m2;
            {   int fc_ret = fc_r_mark_ymUs_(fc_z);
                if (fc_ret == 0) goto lab3;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab2;
        lab3:
            fc_z->c = fc_z->l - fc_m2;
            {   int fc_ret = fc_r_mark_yDU(fc_z);
                if (fc_ret == 0) goto lab4;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab2;
        lab4:
            fc_z->c = fc_z->l - fc_m2;
            {   int fc_ret = fc_r_mark_ysA(fc_z);
                if (fc_ret == 0) goto lab5;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab2;
        lab5:
            fc_z->c = fc_z->l - fc_m2;
            {   int fc_ret = fc_r_mark_yken(fc_z);
                if (fc_ret == 0) goto lab1;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab2:
        goto lab0;
    lab1:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_ret = fc_r_mark_cAsInA(fc_z);
            if (fc_ret == 0) goto lab6;
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
            {   int fc_ret = fc_r_mark_sUnUz(fc_z);
                if (fc_ret == 0) goto lab8;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab7;
        lab8:
            fc_z->c = fc_z->l - fc_m3;
            {   int fc_ret = fc_r_mark_lAr(fc_z);
                if (fc_ret == 0) goto lab9;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab7;
        lab9:
            fc_z->c = fc_z->l - fc_m3;
            {   int fc_ret = fc_r_mark_yUm(fc_z);
                if (fc_ret == 0) goto lab10;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab7;
        lab10:
            fc_z->c = fc_z->l - fc_m3;
            {   int fc_ret = fc_r_mark_sUn(fc_z);
                if (fc_ret == 0) goto lab11;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab7;
        lab11:
            fc_z->c = fc_z->l - fc_m3;
            {   int fc_ret = fc_r_mark_yUz(fc_z);
                if (fc_ret == 0) goto lab12;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab7;
        lab12:
            fc_z->c = fc_z->l - fc_m3;
        }
    lab7:
        {   int fc_ret = fc_r_mark_ymUs_(fc_z);
            if (fc_ret == 0) goto lab6;
            if (fc_ret < 0) return fc_ret;
        }
        goto lab0;
    lab6:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_ret = fc_r_mark_lAr(fc_z);
            if (fc_ret == 0) goto lab13;
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m4 = fc_z->l - fc_z->c; (void)fc_m4;
            fc_z->ket = fc_z->c;
            {   int fc_m5 = fc_z->l - fc_z->c; (void)fc_m5;
                {   int fc_ret = fc_r_mark_DUr(fc_z);
                    if (fc_ret == 0) goto lab16;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab15;
            lab16:
                fc_z->c = fc_z->l - fc_m5;
                {   int fc_ret = fc_r_mark_yDU(fc_z);
                    if (fc_ret == 0) goto lab17;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab15;
            lab17:
                fc_z->c = fc_z->l - fc_m5;
                {   int fc_ret = fc_r_mark_ysA(fc_z);
                    if (fc_ret == 0) goto lab18;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab15;
            lab18:
                fc_z->c = fc_z->l - fc_m5;
                {   int fc_ret = fc_r_mark_ymUs_(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m4; goto lab14; }
                    if (fc_ret < 0) return fc_ret;
                }
            }
        lab15:
        lab14:
            ;
        }
        fc_z->I[0] = 0;
        goto lab0;
    lab13:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_ret = fc_r_mark_nUz(fc_z);
            if (fc_ret == 0) goto lab19;
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m6 = fc_z->l - fc_z->c; (void)fc_m6;
            {   int fc_ret = fc_r_mark_yDU(fc_z);
                if (fc_ret == 0) goto lab21;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab20;
        lab21:
            fc_z->c = fc_z->l - fc_m6;
            {   int fc_ret = fc_r_mark_ysA(fc_z);
                if (fc_ret == 0) goto lab19;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab20:
        goto lab0;
    lab19:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_m7 = fc_z->l - fc_z->c; (void)fc_m7;
            {   int fc_ret = fc_r_mark_sUnUz(fc_z);
                if (fc_ret == 0) goto lab24;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab23;
        lab24:
            fc_z->c = fc_z->l - fc_m7;
            {   int fc_ret = fc_r_mark_yUz(fc_z);
                if (fc_ret == 0) goto lab25;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab23;
        lab25:
            fc_z->c = fc_z->l - fc_m7;
            {   int fc_ret = fc_r_mark_sUn(fc_z);
                if (fc_ret == 0) goto lab26;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab23;
        lab26:
            fc_z->c = fc_z->l - fc_m7;
            {   int fc_ret = fc_r_mark_yUm(fc_z);
                if (fc_ret == 0) goto lab22;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab23:
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m8 = fc_z->l - fc_z->c; (void)fc_m8;
            fc_z->ket = fc_z->c;
            {   int fc_ret = fc_r_mark_ymUs_(fc_z);
                if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m8; goto lab27; }
                if (fc_ret < 0) return fc_ret;
            }
        lab27:
            ;
        }
        goto lab0;
    lab22:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_ret = fc_r_mark_DUr(fc_z);
            if (fc_ret <= 0) return fc_ret;
        }
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m9 = fc_z->l - fc_z->c; (void)fc_m9;
            fc_z->ket = fc_z->c;
            {   int fc_m10 = fc_z->l - fc_z->c; (void)fc_m10;
                {   int fc_ret = fc_r_mark_sUnUz(fc_z);
                    if (fc_ret == 0) goto lab30;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab29;
            lab30:
                fc_z->c = fc_z->l - fc_m10;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) goto lab31;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab29;
            lab31:
                fc_z->c = fc_z->l - fc_m10;
                {   int fc_ret = fc_r_mark_yUm(fc_z);
                    if (fc_ret == 0) goto lab32;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab29;
            lab32:
                fc_z->c = fc_z->l - fc_m10;
                {   int fc_ret = fc_r_mark_sUn(fc_z);
                    if (fc_ret == 0) goto lab33;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab29;
            lab33:
                fc_z->c = fc_z->l - fc_m10;
                {   int fc_ret = fc_r_mark_yUz(fc_z);
                    if (fc_ret == 0) goto lab34;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab29;
            lab34:
                fc_z->c = fc_z->l - fc_m10;
            }
        lab29:
            {   int fc_ret = fc_r_mark_ymUs_(fc_z);
                if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m9; goto lab28; }
                if (fc_ret < 0) return fc_ret;
            }
        lab28:
            ;
        }
    }
lab0:
    fc_z->bra = fc_z->c;
    {   int fc_ret = slice_del(fc_z);
        if (fc_ret < 0) return fc_ret;
    }
    return 1;
}

static int fc_r_stem_suffix_chain_before_ki(struct SN_env * fc_z) {
    fc_z->ket = fc_z->c;
    {   int fc_ret = fc_r_mark_ki(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        {   int fc_ret = fc_r_mark_DA(fc_z);
            if (fc_ret == 0) goto lab1;
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m2 = fc_z->l - fc_z->c; (void)fc_m2;
            fc_z->ket = fc_z->c;
            {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) goto lab4;
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_m4 = fc_z->l - fc_z->c; (void)fc_m4;
                    {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m4; goto lab5; }
                        if (fc_ret < 0) return fc_ret;
                    }
                lab5:
                    ;
                }
                goto lab3;
            lab4:
                fc_z->c = fc_z->l - fc_m3;
                {   int fc_ret = fc_r_mark_possessives(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m2; goto lab2; }
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_m5 = fc_z->l - fc_z->c; (void)fc_m5;
                    fc_z->ket = fc_z->c;
                    {   int fc_ret = fc_r_mark_lAr(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m5; goto lab6; }
                        if (fc_ret < 0) return fc_ret;
                    }
                    fc_z->bra = fc_z->c;
                    {   int fc_ret = slice_del(fc_z);
                        if (fc_ret < 0) return fc_ret;
                    }
                    {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m5; goto lab6; }
                        if (fc_ret < 0) return fc_ret;
                    }
                lab6:
                    ;
                }
            }
        lab3:
        lab2:
            ;
        }
        goto lab0;
    lab1:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_ret = fc_r_mark_nUn(fc_z);
            if (fc_ret == 0) goto lab7;
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m6 = fc_z->l - fc_z->c; (void)fc_m6;
            fc_z->ket = fc_z->c;
            {   int fc_m7 = fc_z->l - fc_z->c; (void)fc_m7;
                {   int fc_ret = fc_r_mark_lArI(fc_z);
                    if (fc_ret == 0) goto lab10;
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab9;
            lab10:
                fc_z->c = fc_z->l - fc_m7;
                fc_z->ket = fc_z->c;
                {   int fc_m8 = fc_z->l - fc_z->c; (void)fc_m8;
                    {   int fc_ret = fc_r_mark_possessives(fc_z);
                        if (fc_ret == 0) goto lab13;
                        if (fc_ret < 0) return fc_ret;
                    }
                    goto lab12;
                lab13:
                    fc_z->c = fc_z->l - fc_m8;
                    {   int fc_ret = fc_r_mark_sU(fc_z);
                        if (fc_ret == 0) goto lab11;
                        if (fc_ret < 0) return fc_ret;
                    }
                }
            lab12:
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_m9 = fc_z->l - fc_z->c; (void)fc_m9;
                    fc_z->ket = fc_z->c;
                    {   int fc_ret = fc_r_mark_lAr(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m9; goto lab14; }
                        if (fc_ret < 0) return fc_ret;
                    }
                    fc_z->bra = fc_z->c;
                    {   int fc_ret = slice_del(fc_z);
                        if (fc_ret < 0) return fc_ret;
                    }
                    {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m9; goto lab14; }
                        if (fc_ret < 0) return fc_ret;
                    }
                lab14:
                    ;
                }
                goto lab9;
            lab11:
                fc_z->c = fc_z->l - fc_m7;
                {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m6; goto lab8; }
                    if (fc_ret < 0) return fc_ret;
                }
            }
        lab9:
        lab8:
            ;
        }
        goto lab0;
    lab7:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_ret = fc_r_mark_ndA(fc_z);
            if (fc_ret <= 0) return fc_ret;
        }
        {   int fc_m10 = fc_z->l - fc_z->c; (void)fc_m10;
            {   int fc_ret = fc_r_mark_lArI(fc_z);
                if (fc_ret == 0) goto lab16;
                if (fc_ret < 0) return fc_ret;
            }
            fc_z->bra = fc_z->c;
            {   int fc_ret = slice_del(fc_z);
                if (fc_ret < 0) return fc_ret;
            }
            goto lab15;
        lab16:
            fc_z->c = fc_z->l - fc_m10;
            {   int fc_ret = fc_r_mark_sU(fc_z);
                if (fc_ret == 0) goto lab17;
                if (fc_ret < 0) return fc_ret;
            }
            fc_z->bra = fc_z->c;
            {   int fc_ret = slice_del(fc_z);
                if (fc_ret < 0) return fc_ret;
            }
            {   int fc_m11 = fc_z->l - fc_z->c; (void)fc_m11;
                fc_z->ket = fc_z->c;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m11; goto lab18; }
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m11; goto lab18; }
                    if (fc_ret < 0) return fc_ret;
                }
            lab18:
                ;
            }
            goto lab15;
        lab17:
            fc_z->c = fc_z->l - fc_m10;
            {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                if (fc_ret <= 0) return fc_ret;
            }
        }
    lab15:
        ;
    }
lab0:
    return 1;
}

static int fc_r_stem_noun_suffixes(struct SN_env * fc_z) {
    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_ret = fc_r_mark_lAr(fc_z);
            if (fc_ret == 0) goto lab1;
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m2 = fc_z->l - fc_z->c; (void)fc_m2;
            {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m2; goto lab2; }
                if (fc_ret < 0) return fc_ret;
            }
        lab2:
            ;
        }
        goto lab0;
    lab1:
        fc_z->c = fc_z->l - fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_ret = fc_r_mark_ncA(fc_z);
            if (fc_ret == 0) goto lab3;
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
            {   int fc_m4 = fc_z->l - fc_z->c; (void)fc_m4;
                fc_z->ket = fc_z->c;
                {   int fc_ret = fc_r_mark_lArI(fc_z);
                    if (fc_ret == 0) goto lab6;
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab5;
            lab6:
                fc_z->c = fc_z->l - fc_m4;
                fc_z->ket = fc_z->c;
                {   int fc_m5 = fc_z->l - fc_z->c; (void)fc_m5;
                    {   int fc_ret = fc_r_mark_possessives(fc_z);
                        if (fc_ret == 0) goto lab9;
                        if (fc_ret < 0) return fc_ret;
                    }
                    goto lab8;
                lab9:
                    fc_z->c = fc_z->l - fc_m5;
                    {   int fc_ret = fc_r_mark_sU(fc_z);
                        if (fc_ret == 0) goto lab7;
                        if (fc_ret < 0) return fc_ret;
                    }
                }
            lab8:
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_m6 = fc_z->l - fc_z->c; (void)fc_m6;
                    fc_z->ket = fc_z->c;
                    {   int fc_ret = fc_r_mark_lAr(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m6; goto lab10; }
                        if (fc_ret < 0) return fc_ret;
                    }
                    fc_z->bra = fc_z->c;
                    {   int fc_ret = slice_del(fc_z);
                        if (fc_ret < 0) return fc_ret;
                    }
                    {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m6; goto lab10; }
                        if (fc_ret < 0) return fc_ret;
                    }
                lab10:
                    ;
                }
                goto lab5;
            lab7:
                fc_z->c = fc_z->l - fc_m4;
                fc_z->ket = fc_z->c;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m3; goto lab4; }
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m3; goto lab4; }
                    if (fc_ret < 0) return fc_ret;
                }
            }
        lab5:
        lab4:
            ;
        }
        goto lab0;
    lab3:
        fc_z->c = fc_z->l - fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_m7 = fc_z->l - fc_z->c; (void)fc_m7;
            {   int fc_ret = fc_r_mark_ndA(fc_z);
                if (fc_ret == 0) goto lab13;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab12;
        lab13:
            fc_z->c = fc_z->l - fc_m7;
            {   int fc_ret = fc_r_mark_nA(fc_z);
                if (fc_ret == 0) goto lab11;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab12:
        {   int fc_m8 = fc_z->l - fc_z->c; (void)fc_m8;
            {   int fc_ret = fc_r_mark_lArI(fc_z);
                if (fc_ret == 0) goto lab15;
                if (fc_ret < 0) return fc_ret;
            }
            fc_z->bra = fc_z->c;
            {   int fc_ret = slice_del(fc_z);
                if (fc_ret < 0) return fc_ret;
            }
            goto lab14;
        lab15:
            fc_z->c = fc_z->l - fc_m8;
            {   int fc_ret = fc_r_mark_sU(fc_z);
                if (fc_ret == 0) goto lab16;
                if (fc_ret < 0) return fc_ret;
            }
            fc_z->bra = fc_z->c;
            {   int fc_ret = slice_del(fc_z);
                if (fc_ret < 0) return fc_ret;
            }
            {   int fc_m9 = fc_z->l - fc_z->c; (void)fc_m9;
                fc_z->ket = fc_z->c;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m9; goto lab17; }
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m9; goto lab17; }
                    if (fc_ret < 0) return fc_ret;
                }
            lab17:
                ;
            }
            goto lab14;
        lab16:
            fc_z->c = fc_z->l - fc_m8;
            {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                if (fc_ret == 0) goto lab11;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab14:
        goto lab0;
    lab11:
        fc_z->c = fc_z->l - fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_m10 = fc_z->l - fc_z->c; (void)fc_m10;
            {   int fc_ret = fc_r_mark_ndAn(fc_z);
                if (fc_ret == 0) goto lab20;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab19;
        lab20:
            fc_z->c = fc_z->l - fc_m10;
            {   int fc_ret = fc_r_mark_nU(fc_z);
                if (fc_ret == 0) goto lab18;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab19:
        {   int fc_m11 = fc_z->l - fc_z->c; (void)fc_m11;
            {   int fc_ret = fc_r_mark_sU(fc_z);
                if (fc_ret == 0) goto lab22;
                if (fc_ret < 0) return fc_ret;
            }
            fc_z->bra = fc_z->c;
            {   int fc_ret = slice_del(fc_z);
                if (fc_ret < 0) return fc_ret;
            }
            {   int fc_m12 = fc_z->l - fc_z->c; (void)fc_m12;
                fc_z->ket = fc_z->c;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m12; goto lab23; }
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m12; goto lab23; }
                    if (fc_ret < 0) return fc_ret;
                }
            lab23:
                ;
            }
            goto lab21;
        lab22:
            fc_z->c = fc_z->l - fc_m11;
            {   int fc_ret = fc_r_mark_lArI(fc_z);
                if (fc_ret == 0) goto lab18;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab21:
        goto lab0;
    lab18:
        fc_z->c = fc_z->l - fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_ret = fc_r_mark_DAn(fc_z);
            if (fc_ret == 0) goto lab24;
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m13 = fc_z->l - fc_z->c; (void)fc_m13;
            fc_z->ket = fc_z->c;
            {   int fc_m14 = fc_z->l - fc_z->c; (void)fc_m14;
                {   int fc_ret = fc_r_mark_possessives(fc_z);
                    if (fc_ret == 0) goto lab27;
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_m15 = fc_z->l - fc_z->c; (void)fc_m15;
                    fc_z->ket = fc_z->c;
                    {   int fc_ret = fc_r_mark_lAr(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m15; goto lab28; }
                        if (fc_ret < 0) return fc_ret;
                    }
                    fc_z->bra = fc_z->c;
                    {   int fc_ret = slice_del(fc_z);
                        if (fc_ret < 0) return fc_ret;
                    }
                    {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m15; goto lab28; }
                        if (fc_ret < 0) return fc_ret;
                    }
                lab28:
                    ;
                }
                goto lab26;
            lab27:
                fc_z->c = fc_z->l - fc_m14;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) goto lab29;
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_m16 = fc_z->l - fc_z->c; (void)fc_m16;
                    {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m16; goto lab30; }
                        if (fc_ret < 0) return fc_ret;
                    }
                lab30:
                    ;
                }
                goto lab26;
            lab29:
                fc_z->c = fc_z->l - fc_m14;
                {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m13; goto lab25; }
                    if (fc_ret < 0) return fc_ret;
                }
            }
        lab26:
        lab25:
            ;
        }
        goto lab0;
    lab24:
        fc_z->c = fc_z->l - fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_m17 = fc_z->l - fc_z->c; (void)fc_m17;
            {   int fc_ret = fc_r_mark_nUn(fc_z);
                if (fc_ret == 0) goto lab33;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab32;
        lab33:
            fc_z->c = fc_z->l - fc_m17;
            {   int fc_ret = fc_r_mark_ylA(fc_z);
                if (fc_ret == 0) goto lab31;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab32:
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m18 = fc_z->l - fc_z->c; (void)fc_m18;
            {   int fc_m19 = fc_z->l - fc_z->c; (void)fc_m19;
                fc_z->ket = fc_z->c;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) goto lab36;
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                    if (fc_ret == 0) goto lab36;
                    if (fc_ret < 0) return fc_ret;
                }
                goto lab35;
            lab36:
                fc_z->c = fc_z->l - fc_m19;
                fc_z->ket = fc_z->c;
                {   int fc_m20 = fc_z->l - fc_z->c; (void)fc_m20;
                    {   int fc_ret = fc_r_mark_possessives(fc_z);
                        if (fc_ret == 0) goto lab39;
                        if (fc_ret < 0) return fc_ret;
                    }
                    goto lab38;
                lab39:
                    fc_z->c = fc_z->l - fc_m20;
                    {   int fc_ret = fc_r_mark_sU(fc_z);
                        if (fc_ret == 0) goto lab37;
                        if (fc_ret < 0) return fc_ret;
                    }
                }
            lab38:
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_m21 = fc_z->l - fc_z->c; (void)fc_m21;
                    fc_z->ket = fc_z->c;
                    {   int fc_ret = fc_r_mark_lAr(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m21; goto lab40; }
                        if (fc_ret < 0) return fc_ret;
                    }
                    fc_z->bra = fc_z->c;
                    {   int fc_ret = slice_del(fc_z);
                        if (fc_ret < 0) return fc_ret;
                    }
                    {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m21; goto lab40; }
                        if (fc_ret < 0) return fc_ret;
                    }
                lab40:
                    ;
                }
                goto lab35;
            lab37:
                fc_z->c = fc_z->l - fc_m19;
                {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m18; goto lab34; }
                    if (fc_ret < 0) return fc_ret;
                }
            }
        lab35:
        lab34:
            ;
        }
        goto lab0;
    lab31:
        fc_z->c = fc_z->l - fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_ret = fc_r_mark_lArI(fc_z);
            if (fc_ret == 0) goto lab41;
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        goto lab0;
    lab41:
        fc_z->c = fc_z->l - fc_m1;
        {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
            if (fc_ret == 0) goto lab42;
            if (fc_ret < 0) return fc_ret;
        }
        goto lab0;
    lab42:
        fc_z->c = fc_z->l - fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_m22 = fc_z->l - fc_z->c; (void)fc_m22;
            {   int fc_ret = fc_r_mark_DA(fc_z);
                if (fc_ret == 0) goto lab45;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab44;
        lab45:
            fc_z->c = fc_z->l - fc_m22;
            {   int fc_ret = fc_r_mark_yU(fc_z);
                if (fc_ret == 0) goto lab46;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab44;
        lab46:
            fc_z->c = fc_z->l - fc_m22;
            {   int fc_ret = fc_r_mark_yA(fc_z);
                if (fc_ret == 0) goto lab43;
                if (fc_ret < 0) return fc_ret;
            }
        }
    lab44:
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m23 = fc_z->l - fc_z->c; (void)fc_m23;
            fc_z->ket = fc_z->c;
            {   int fc_m24 = fc_z->l - fc_z->c; (void)fc_m24;
                {   int fc_ret = fc_r_mark_possessives(fc_z);
                    if (fc_ret == 0) goto lab49;
                    if (fc_ret < 0) return fc_ret;
                }
                fc_z->bra = fc_z->c;
                {   int fc_ret = slice_del(fc_z);
                    if (fc_ret < 0) return fc_ret;
                }
                {   int fc_m25 = fc_z->l - fc_z->c; (void)fc_m25;
                    fc_z->ket = fc_z->c;
                    {   int fc_ret = fc_r_mark_lAr(fc_z);
                        if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m25; goto lab50; }
                        if (fc_ret < 0) return fc_ret;
                    }
                lab50:
                    ;
                }
                goto lab48;
            lab49:
                fc_z->c = fc_z->l - fc_m24;
                {   int fc_ret = fc_r_mark_lAr(fc_z);
                    if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m23; goto lab47; }
                    if (fc_ret < 0) return fc_ret;
                }
            }
        lab48:
            fc_z->bra = fc_z->c;
            {   int fc_ret = slice_del(fc_z);
                if (fc_ret < 0) return fc_ret;
            }
            fc_z->ket = fc_z->c;
            {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m23; goto lab47; }
                if (fc_ret < 0) return fc_ret;
            }
        lab47:
            ;
        }
        goto lab0;
    lab43:
        fc_z->c = fc_z->l - fc_m1;
        fc_z->ket = fc_z->c;
        {   int fc_m26 = fc_z->l - fc_z->c; (void)fc_m26;
            {   int fc_ret = fc_r_mark_possessives(fc_z);
                if (fc_ret == 0) goto lab52;
                if (fc_ret < 0) return fc_ret;
            }
            goto lab51;
        lab52:
            fc_z->c = fc_z->l - fc_m26;
            {   int fc_ret = fc_r_mark_sU(fc_z);
                if (fc_ret <= 0) return fc_ret;
            }
        }
    lab51:
        fc_z->bra = fc_z->c;
        {   int fc_ret = slice_del(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        {   int fc_m27 = fc_z->l - fc_z->c; (void)fc_m27;
            fc_z->ket = fc_z->c;
            {   int fc_ret = fc_r_mark_lAr(fc_z);
                if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m27; goto lab53; }
                if (fc_ret < 0) return fc_ret;
            }
            fc_z->bra = fc_z->c;
            {   int fc_ret = slice_del(fc_z);
                if (fc_ret < 0) return fc_ret;
            }
            {   int fc_ret = fc_r_stem_suffix_chain_before_ki(fc_z);
                if (fc_ret == 0) { fc_z->c = fc_z->l - fc_m27; goto lab53; }
                if (fc_ret < 0) return fc_ret;
            }
        lab53:
            ;
        }
    }
lab0:
    return 1;
}

static int fc_r_post_process_last_consonants(struct SN_env * fc_z) {
    int fc_among_var;
    fc_z->ket = fc_z->c;
    fc_among_var = find_among_b(fc_z, a_23, 4);
    if (!(fc_among_var)) return 0;
    fc_z->bra = fc_z->c;
    switch (fc_among_var) {
        case 1:
            {   int fc_ret = slice_from_s(fc_z, 1, s_5);
                if (fc_ret < 0) return fc_ret;
            }
            break;
        case 2:
            {   int fc_ret = slice_from_s(fc_z, 2, s_6);
                if (fc_ret < 0) return fc_ret;
            }
            break;
        case 3:
            {   int fc_ret = slice_from_s(fc_z, 1, s_7);
                if (fc_ret < 0) return fc_ret;
            }
            break;
        case 4:
            {   int fc_ret = slice_from_s(fc_z, 1, s_8);
                if (fc_ret < 0) return fc_ret;
            }
            break;
    }
    return 1;
}

static int fc_r_append_U_to_stems_ending_with_d_or_g(struct SN_env * fc_z) {
    {   int fc_m_test1 = fc_z->l - fc_z->c;
        {   int fc_m2 = fc_z->l - fc_z->c; (void)fc_m2;
            if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'd') goto lab1;
            fc_z->c--;
            goto lab0;
        lab1:
            fc_z->c = fc_z->l - fc_m2;
            if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'g') return 0;
            fc_z->c--;
        }
    lab0:
        fc_z->c = fc_z->l - fc_m_test1;
    }
    {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
        {   int fc_m_test4 = fc_z->l - fc_z->c;
            if (out_grouping_b_U(fc_z, g_vowel, 97, 305, 1) < 0) goto lab3;
            {   int fc_m5 = fc_z->l - fc_z->c; (void)fc_m5;
                if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'a') goto lab5;
                fc_z->c--;
                goto lab4;
            lab5:
                fc_z->c = fc_z->l - fc_m5;
                if (!(eq_s_b(fc_z, 2, s_9))) goto lab3;
            }
        lab4:
            fc_z->c = fc_z->l - fc_m_test4;
        }
        {   int fc_ret;
            {   int fc_saved_c = fc_z->c;
                fc_ret = insert_s(fc_z, fc_z->c, fc_z->c, 2, s_10);
                fc_z->c = fc_saved_c;
            }
            if (fc_ret < 0) return fc_ret;
        }
        goto lab2;
    lab3:
        fc_z->c = fc_z->l - fc_m3;
        {   int fc_m_test6 = fc_z->l - fc_z->c;
            if (out_grouping_b_U(fc_z, g_vowel, 97, 305, 1) < 0) goto lab6;
            {   int fc_m7 = fc_z->l - fc_z->c; (void)fc_m7;
                if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'e') goto lab8;
                fc_z->c--;
                goto lab7;
            lab8:
                fc_z->c = fc_z->l - fc_m7;
                if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'i') goto lab6;
                fc_z->c--;
            }
        lab7:
            fc_z->c = fc_z->l - fc_m_test6;
        }
        {   int fc_ret;
            {   int fc_saved_c = fc_z->c;
                fc_ret = insert_s(fc_z, fc_z->c, fc_z->c, 1, s_11);
                fc_z->c = fc_saved_c;
            }
            if (fc_ret < 0) return fc_ret;
        }
        goto lab2;
    lab6:
        fc_z->c = fc_z->l - fc_m3;
        {   int fc_m_test8 = fc_z->l - fc_z->c;
            if (out_grouping_b_U(fc_z, g_vowel, 97, 305, 1) < 0) goto lab9;
            {   int fc_m9 = fc_z->l - fc_z->c; (void)fc_m9;
                if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'o') goto lab11;
                fc_z->c--;
                goto lab10;
            lab11:
                fc_z->c = fc_z->l - fc_m9;
                if (fc_z->c <= fc_z->lb || fc_z->p[fc_z->c - 1] != 'u') goto lab9;
                fc_z->c--;
            }
        lab10:
            fc_z->c = fc_z->l - fc_m_test8;
        }
        {   int fc_ret;
            {   int fc_saved_c = fc_z->c;
                fc_ret = insert_s(fc_z, fc_z->c, fc_z->c, 1, s_12);
                fc_z->c = fc_saved_c;
            }
            if (fc_ret < 0) return fc_ret;
        }
        goto lab2;
    lab9:
        fc_z->c = fc_z->l - fc_m3;
        {   int fc_m_test10 = fc_z->l - fc_z->c;
            if (out_grouping_b_U(fc_z, g_vowel, 97, 305, 1) < 0) return 0;
            {   int fc_m11 = fc_z->l - fc_z->c; (void)fc_m11;
                if (!(eq_s_b(fc_z, 2, s_13))) goto lab13;
                goto lab12;
            lab13:
                fc_z->c = fc_z->l - fc_m11;
                if (!(eq_s_b(fc_z, 2, s_14))) return 0;
            }
        lab12:
            fc_z->c = fc_z->l - fc_m_test10;
        }
        {   int fc_ret;
            {   int fc_saved_c = fc_z->c;
                fc_ret = insert_s(fc_z, fc_z->c, fc_z->c, 2, s_15);
                fc_z->c = fc_saved_c;
            }
            if (fc_ret < 0) return fc_ret;
        }
    }
lab2:
    return 1;
}

static int fc_r_is_reserved_word(struct SN_env * fc_z) {
    if (!(eq_s_b(fc_z, 2, s_16))) return 0;
    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        if (!(eq_s_b(fc_z, 3, s_17))) { fc_z->c = fc_z->l - fc_m1; goto lab0; }
    lab0:
        ;
    }
    if (fc_z->c > fc_z->lb) return 0;
    return 1;
}

static int fc_r_more_than_one_syllable_word(struct SN_env * fc_z) {
    {   int fc_c_test1 = fc_z->c;
        {   int fc_i = 2;
            while(1) {
                int fc_c2 = fc_z->c;
                {   
                    int fc_ret = out_grouping_U(fc_z, g_vowel, 97, 305, 1);
                    if (fc_ret < 0) goto lab0;
                    fc_z->c += fc_ret;
                }
                fc_i--;
                continue;
            lab0:
                fc_z->c = fc_c2;
                break;
            }
            if (fc_i > 0) return 0;
        }
        fc_z->c = fc_c_test1;
    }
    return 1;
}

static int fc_r_postlude(struct SN_env * fc_z) {
    fc_z->lb = fc_z->c; fc_z->c = fc_z->l;

    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        {   int fc_ret = fc_r_is_reserved_word(fc_z);
            if (fc_ret == 0) goto lab0;
            if (fc_ret < 0) return fc_ret;
        }
        return 0;
    lab0:
        fc_z->c = fc_z->l - fc_m1;
    }
    {   int fc_m2 = fc_z->l - fc_z->c; (void)fc_m2;
        {   int fc_ret = fc_r_append_U_to_stems_ending_with_d_or_g(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->c = fc_z->l - fc_m2;
    }
    {   int fc_m3 = fc_z->l - fc_z->c; (void)fc_m3;
        {   int fc_ret = fc_r_post_process_last_consonants(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->c = fc_z->l - fc_m3;
    }
    fc_z->c = fc_z->lb;
    return 1;
}

extern int turkish_UTF_8_stem(struct SN_env * fc_z) {
    {   int fc_ret = fc_r_more_than_one_syllable_word(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    fc_z->lb = fc_z->c; fc_z->c = fc_z->l;

    {   int fc_m1 = fc_z->l - fc_z->c; (void)fc_m1;
        {   int fc_ret = fc_r_stem_nominal_verb_suffixes(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->c = fc_z->l - fc_m1;
    }
    if (!(fc_z->I[0])) return 0;
    {   int fc_m2 = fc_z->l - fc_z->c; (void)fc_m2;
        {   int fc_ret = fc_r_stem_noun_suffixes(fc_z);
            if (fc_ret < 0) return fc_ret;
        }
        fc_z->c = fc_z->l - fc_m2;
    }
    fc_z->c = fc_z->lb;
    {   int fc_ret = fc_r_postlude(fc_z);
        if (fc_ret <= 0) return fc_ret;
    }
    return 1;
}

extern struct SN_env * turkish_UTF_8_create_env(void) { return SN_create_env(0, 1); }

extern void turkish_UTF_8_close_env(struct SN_env * fc_z) { SN_close_env(fc_z, 0); }

